﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BGSpaceShooter;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ParticleSystem.ParticleSystem;

namespace ParticleSystem
{
    public class WaterEffectDrawer : EffectDrawer
    {
        public WaterEffectDrawer(IObjectEffect objectEffect, GameObject gameObject)
            : base(objectEffect, gameObject)
        {
            this.gameObject = gameObject;
            this.objectEffect = objectEffect;
        }

        public override void Draw(Camera camera)
        {
            new ParticleDrawer((objectEffect as WaterEffect).particleEmmiter).Draw(camera);
        }
    }
}
